Generation of sub-picosecond electron bunches from RF photoinjectors