Full process for integrating silicon nanowire arrays into solar cells