Method to detect only viable cells in microbial ecology