Mechanisms and applications of microbial bioelectrochemistry