Oxygen isotope partitioning among the minerals in igneous and metamorphic rocks