The metal-nonmetal transition in ionic liquids