X-ray investigation of the R–Fe–Sn ternary systems (R–Y, Gd)