Rocks found on the Earth are generally classified as sedimentary, metamorphic, or igneous. How are these rocks classified?