On the calculation of stability constants. A computer version of Fronaeus' graphical integration method