Quantitative analysis of absorption spectra and application to the characterization of ligand binding curves