Nanostructured carbon/silicon composite opto-electrochemical devices for sensing and energy harvesting applications