Thermomechanical degradation and failure mechanisms in thin film technologies