Surface roughness evaluation in hardened materials by pattern recognition using network theory