Study of the magnetocaloric properties of the antiferromagnetic compounds RGa2 (R = Ce, Pr, Nd, Dy, Ho and Er)