Procedural approach on using XRD to qualify the surface roughness