Electrochemical insights into bacterial physiology : electron transfer and metabolite detection