Origins of Gemstones in Igneous, Sedimentary, and Metamorphic Rocks