Electrochemical preparation of nanostructured lanthanum using lanthanum chloride as a precursor in 1-butyl-3-methylimidazolium dicyanamide ionic liquid.