Single nanowire photovoltaics