Magnetocaloric effect in nano- and polycrystalline manganites La0.5Ca0.5MnO3