diagnosis of bacterial infections