Diagnosing antimicrobial resistance