Breath analysis for medical applications