Correlation of residual stress with optical absorption edge in diamond-like carbon films