A computer method for the construction of Eh-pH diagrams