Photonic integration for phased-array applications