Earthquakes and volcanic eruptions