A biofilm model for assessing perchlorate reduction in a methane-based membrane biofilm reactor