Thermal stress simulation in the metal-insulator-metal (MIM) wafer fabrication process