NiPNiO electrolytic layers as anode materials