Diffractive optical element based sensor for roughness measurement