Simultaneous nitrate and perchlorate reduction in an elemental sulfur-based denitrifying membrane bioreactor