Effect of source spectral width and its temporal coherence in the interference pattern of a Mach–Zehnder interferometer