Overcoming the effects of the Earth's atmosphere on astronomical observations with 3D integrated photonic technologies