What causes a sedimentary or metamorphic rock to turn into an igneous rock?