Design of an optical sensor for surface roughness measurements of wood based panels