Thermally induced deformations in die-substrate assembly