Fabrication of axial p-n junction silicon nanopillar devices and application in photovoltaics