Quasi-phase matching in semiconductor waveguides using intermixing