Design of an optical probe for surface profile measurement