Plate tectonics and earthquakes