Surface-wave Bragg resonators for terahertz frequency range