Inverse design of grating coupler