Microbial ecology of phototrophic biofilms