The role of bacterial communities and carbon dioxide on the corrosion of steel