how did barium hydroxide appear in the absence of CO2 and how it appear in the presence of CO2