Electron diffraction studies of supersonic jets. I. Apparatus and methods