Spectrophotometric measurements and their uncertainty in chemical analysis and dissociation constant measurements