Bioelectrochemistry and bioenergetics