_____________ rock is formed when magma cools and hardens.