Product state analysis of BaO from the reactions Ba + CO2 and Ba + O2