Ultra-short pulse generation from mid-IR to THz range using plasma wakes and relativistic ionization fronts