Stress Analysis for Chip Scale Packages with Embedded Active Devices under Thermal Cycling