Nanostructural dependence of hydrogen production in silicon photocathodes