Copper nitroprusside cathode for Li and Na batteries: structural and electronic studies by operando X-ray Powder Diffraction and XAFS