An ecology-based analysis of irreversible biofouling in membrane bioreactors.