Computation of acidity constants of a polyprotic acid from Nuclear Magnetic Resonance or UV-Visible spectrophotometric data