Transient optical pulse formation and mode locking through parametric traveling-wave modulation.