Transport properties and metal–insulator transition in oxygen deficient LaNiO3: a density functional theory study