Text this: Thermal stability optimization of single-leg skutterudite-based thermoelectric devices based on lattice distortion effects