Effect of encapsulated polymers and nanoparticles on shear deformation of droplets