Nonlinear Frequency-Sweep Correction of Tunable Electromagnetic Sources