Generalized thermoelastic analysis of thermo-optic switch multi-layer structure