Imaging and analysis of nanowires