Electrochemical studies of magnesium implanted with high doses of light ions