waste water management COD estimation