Wiggler and undulator magnets — A review