Electric Machinery: The Dynamics and Statics of Electromechanical Energy Conversion