Energy conversion in silicon nanostructures and devices