The "penalty surface" technique for static lateral global response in masonry walls