The treatment of masonry vaults through the Monge-Ampère Equation