magma reaches the surface by erupting through a volcano, which is a