Electromechanical Devices: Theory, Applications, and Troubleshooting