Photonic Integrated Circuits for Phased-Array Beamforming