Application of molecular genetics to the study of microbial communities