Ramp-rate limitation in large superconducting magnets due to supercurrents