Dual behaviors of magnetic CoxFe1−x (0≤x≤1) nanowires embedded in nanoporous with different diameters