Molecular detection of microorganisms