General Solutions for Three-Dimensional Thermoelasticity of Two-Dimensional Hexagonal Quasicrystals and an Application