Surface-micromachined Electromagnets for 100 μm-scale Undulators and Focusing Optics☆