Model to Assess the Quality of Magmatic Rocks for Reliable and Sustainable Constructions