Spectrophotometric determination of reaction stoichiometry and equilibrium constants of metallochromic indicators