An exact wave‐optics analysis of optical waveguide with anisotropic and gyrotropic materials