2. formation of igneous rocks due to hardening of magma