Magma that forces across rock layers hardens into a