Crystallographic, magnetic and electrical characteristics of R3Ni8Sn4 compounds (R = Y, Nd, Sm, Gd, and Tb)