Bacterial function and community structure in reactors treating biopolymers and surfactants at mesophilic and thermophilic temperatures