Influence of doping elements (Y and Fe) on crystal structure and electrical resistivity of the RNi2 (R = Gd, Er) compounds