Evaluation of near infrared spectroscopy and software sensor methods for determination of total alkalinity in anaerobic digesters.