Design and Control of Gain-Flattened Erbium-Doped Fiber Amplifier for WDM Applications