Optimization of THz Radiation Pulses at FLUTE