High-gain harmonic generation with temporally overlapping seed pulses and application to ultrafast spectroscopy