Relationship of residual stress to dislocation density in cold-worked martensitic alloy