Theory of the clinotron: A grating backward-wave oscillator with inclined electron beam