The calculation of stability constants of weak complexes from spectrophotometric data