Diagnostic techniques for ventilator-associated pneumonia