Redox competition and stability : rare earth misfit layer compounds as an example