Relationship between mountain building processes and earthquakes