Competition for electrons between reductive dechlorination and denitrification