Dynamics of Mechanical and Electromechanical Systems