Unidirectional waveguide grating antennas for nanophotonic phased arrays