Bounded-plasma theory of radio-frequency heating of toroidal machines