Combining ab initio calculations and low-energy effective field theory for halo nuclear systems: The case of 7 Li + n → 8 Li + γ