Ni doped P3/O3 biphasic material Solid-state synthesis Ex-situ X-ray diffraction Charge transfer resistanceXANES Charge compensation mechanism