Electrochemical and chemical reduction of niobocene dichlorides in the presence of carbon dioxide