A semiconductor laser with flat frequency response up to 2 GHz