Design study of a low-emittance high-repetition rate thermionic rf gun