Electrochemical deposition of conducting polymer coatings on magnesium surfaces in ionic liquid.