Size-dependent thermal stresses in the core—shell nanoparticles