High temperature superconducting magnets