PCOILS. Mathematical Models of Pulsed Tokamak Coil Systems for Stuying Energy Requirement and Control Problems