Electrochemical formation of oxygen-deficient molybdenum oxide