Thermal stress effects on size-dependent nonlinear axial vibrations of nanorods exposed to magnetic fields surrounded by nonlinear elastic medium