Integrating Machine Learning and Computational Physics to Assess Crack Pattern Similarity in Masonry Buildings