Electrodeposition of metals, chalcogenides, and metal chalcogenides from ionic liquids