Inverse design of grating coupler (3D)