Bioelectrochemical element conversion reactions towards generation of energy and value-added chemicals