A marginally stable optical resonator for enhanced atom interferometry