A Parametric Investigation of the Seismic Capacity for Masonry Arches and Portals of Different Shapes