Coupling, scattering, and perturbation theory: Semi-analytical analyses of photonic-crystal waveguides