Effects of Residual Stress on the Hardness of Elastoplastic Material Under Spherical Indentation