Coherence characterization of nanosecond rectangular pulses in passively mode-locked fiber lasers