Optical response of porous titania-silica waveguides to surface charging in electrolyte filled pores