Excess Sludge Production in Membrane Bioreactors: A Theoretical Investigation