Study of the magnetic and magnetocaloric properties in RE CoC ( RE = Tb and Er) compounds