Modulation functions of the reflective optical fiber sensor for specular and diffuse reflection