What is the relationship between tectonic plates, earthquakes, and volcanoes?