Electrodeposition of metals and semiconductors in air- and water-stable ionic liquids.