Functional diversity and dynamics of bacterial communities in a membrane bioreactor for the treatment of metal-working fluid wastewater