Role of 2D and 3D defects on the reduction of LaNiO3 nanoparticles for catalysis