Cost-effective double pass erbium doped fiber amplifier with an embedded dispersion compensation module and all-optical gain control for wavelength-division multiplexing applications