Photoresponsive properties of ultrathin silicon nanowires