The normal and inverse magnetocaloric effect in RCu2 (R=Tb, Dy, Ho, Er) compounds