Flux pump having a high-temperature superconductor and a superconducting electromagnet which can be operated by way of the flux pump