Crystal field effects in the intermetallic R Ni 3 Ga 9 (R =Tb , Dy, Ho, and Er) compounds