Improved terahertz Smith–Purcell radiation using side-opening cylindrical gratings