Evaluation of energy consumption of treating nitrate-contaminated groundwater by bioelectrochemical systems