A comparative study of the magnetocaloric effect in RNi[sub 2] (R=Nd,Gd,Tb) intermetallic compounds