Bioelectrochemical conversion of carbon dioxide to methane for biogas upgrading