A Study of the Response of Reinforced Concrete Frames with and without Masonry Infill Walls to Simulated Earthquakes