Dynamics of Structures: Theory and Applications to Earthquake Engineering