A generalized thermoelastic instability analysis