Effective electric-field force for a photon in a synthetic frequency lattice created in a waveguide modulator