Design principles for photovoltaic devices based on Si nanowires with axial or radial p-n junctions.