A device and method for non-invasive analysis of particles during medical ventilation