Routine solves the composition of mixture. Function returns mass fractions of CO2, H2O, O2 and N2.