Silicon nanowires for photonics, photovoltaics and sensing