Configurational Optimization and Configurational Force in Thermoelasticity: Theory and Computational Procedure