Fast and inexpensive detection of bacterial viability and drug resistance through metabolic monitoring