Structural, electronic structure and magnetic studies of GdFe1−xNixO3 (x ≤ 0.5)