Bioelectrochemistry for flexible control of biological processes