A comparison of bonding and epitaxial growth for heterogeneous photonic integrated circuits