Magnetocaloric effects in RNiIn (R = Gd-Er) intermetallic compounds