An Approach to Masonry Structural Analysis by the No-Tension Assumption. Part I: Material Modeling, Theoretical Setup, and Closed Form Solutions