A biofilm model to understand the onset of sulfate reduction in denitrifying membrane biofilm reactors