Variations of optical M-waveguides for direct phase matching in AlGaAs