Common shallow ridge waveguide laser-electroabsorption modulator using lateral ion implantation