Development of residual strains and their relaxation processes in atomically thin layers of core-shell structured nanoparticles