Molecular characterization of microbial diversity in wastewater treatment and reuse