Redox reactions in double calcium and iron phosphates