Electron beam requirements for a three-dimensional Smith-Purcell backward-wave oscillator for intense terahertz radiation