Oxidation potential and the composition of metamorphic fluid as a solution to the inverse problem of convex programming