Magnetocaloric effects in rare-earth magnetic materials