Influence of ferric iron on the stability of mineral assemblages