Thermomechanical effects in the nematic liquid crystals