Optical Beamform Engineering Using Phase and Amplitude Coded Nanophotonic Antenna Arrays