Wave dynamics in optically modulated waveguide arrays.