Magnetic and electronic structures of FePtCu ternary ordered alloy