Corrosion mechanisms in energy conversion systems