Rocks found on Earth are generally classified as sedimentary, metamorphic, or igneous. On which basis are these classifications made?