Rocks can be classified as sedimentary, igneous, or metamorphic based primarily upon differences in their