Controllable electrochemical synthesis and magnetic behaviors of Mg–Mn–Fe–Co–Ni–Gd alloy films