The Role of Geometry and Friction in the Equilibrium of the Masonry Arch