Classification of Buildings' Potential for Seismic Damage by Means of Artificial Intelligence Techniques