Bose-Einstein Condensates in Time-Dependent Light Potentials: Adiabatic and Nonadiabatic Behavior of Nonlinear Wave Equations