emplacement of magma within and at the surface of the outer layers of a terrestrial planet, which solidifies as igneous rocks