What causes metamorphic rock to turn to magma?