Modes in optical waveguides formed by silver-sodium ion exchange