Modeling of selectively buried ion-exchanged waveguides using the beam propagation method