Thermoelastic Stress Analysis: numerical automatic shape reconstruction for stress separation