Superconducting magnets for future accelerators