Photonic crystal waveguide-mode orthogonality conditions and computation of intrinsic waveguide losses