Optical and surface properties of inorganic and hybrid organic-inorganic silica-titania sol-gel planar waveguides