Real-time monitoring of the dynamic metabolism and responses of pathogenic bacteria using electroanalytical methods