Evaluation of Surface Layer Residual Stresses and Lattice Distortions in Ion Implanted Materials by X-Ray Diffraction