Application of proper orthogonal decomposition to damage detection in homogeneous plates and composite beams