A multi-purpose control and power electronic architecture for active magnetic actuators