Metamorphic buffers and optical measurement of residual strain