Immunoassays for the detection of microorganisms