Spectrophotometric determination of acidity constants of compounds with unsuitable absorption features