Modeling of diffractive structures in photorefractive Er/Yb codoped glass waveguides