Development of superconducting magnets for FAIR