Electromagnets for epr spectroscopy