Text this: Nanowire-based electronic and optoelectronic devices