Optical transitions and Rabi oscillations in waveguide arrays.