Quasi-optical theory of amplification of surface waves propagating above corrugated structures by a relativistic electron beam (impedance approximation)