Waveguide theory is based upon: