Time‐domain gate based on a mach‐zehnder interferometer to reduce amplified spontaneous emissions in a continuously pumped fiber amplifier