Loss assessment of rigid-frame bridges under horizontal and vertical ground motions