The formation of two-phase layered scales on pure metals