Inverse design optimization of a bilayer grating coupler