Admittance model for (superconducting) magnets for power converters control