Design of the laser-driven RF electron gun for the BNL accelerator test facility