A novel technique for evaluating foam dynamics in anaerobic digesters.