Bioreactors and biomembranes for biochemical oxygen demand estimation