Theory of two-temperature-generalized thermoelasticity