Review on photonic properties of nanowires for photovoltaics