Macroelement Model for In-Plane and Out-of-Plane Responses of Masonry Infills in Frame Structures