Structural, electrical transport and x-ray absorption spectroscopy studies of LaFe1−xNixO3 (x⩽0.6)