Metamodel-based pattern recognition approach for real-time identification of earthquake-induced damage in historic masonry structures