Hamilton–Jacobi formulation and quantum theory of thermal wave propagation in the solid state