Electrochemical modification of the optical and electrical properties of Cd-rich NixCd1–xO alloys