Compact optical phased array using a serial grating antenna design