A Method for Earthquake Motion-Damage Relationships with Application to Reinforced Concrete Frames