Full Waveform Inversion Using Simultaneous Encoded Sources Based On First- And Second-Order Optimization Methods