Characterization of oxygen-deficient phases appearing in reduction of the perovskite-type LaNiO3 to La2Ni2O5