Silicon nanowires devices in energy and environmental applications