Effect of substrate characteristics on microbial community structure, function, resistance, and resilience; application to coupled photocatalytic-biological treatment.