A new optimization approach for source-encoding full-waveform inversion