Formation of iron oxide and iron sulfide at high temperature and their effects on corrosion