Effects of sludge retention time on membrane fouling and microbial community structure in a membrane bioreactor