Intracavity filtering of the spectrum of a short-pulse FEL by inducing interpulse phase coherence