Replica method and residual stress measurement by X-ray