Foaming in membrane bioreactor: identification of the causes