Calculation of geothermal reservoir temperatures and steam fractions from gas compositions