Integrated photonic design