A general approach to the interpretation of pH degradation profiles in the presence of ligands