Measurement of residual stress in the brain