Photoinduced oxidation of water to oxygen in the ionic liquid BMIMBF4 as the counter reaction in the fabrication of exceptionally long semiconducting silver-tetracyanoquinodimethane nanowires.