Accounting for thermal sensitivity in the equations of displacement theory for the thermoelasticity of layered plates and shells