Electrochemical formation of Ni-Y intermetallic compound layer in molten chloride