Extrusive igneous rocks cool above Earth's surface and form