Nonlinear elastic waves in solids under thermal variations