Biofilm reactor based real-time analysis of biochemical oxygen demand.