Generation of frequency-chirped pulses in the far-infrared by means of a sub-picosecond free-electron laser and an external pulse shaper