Active damping for electromagnetic transients in superconducting systems