Charge carrier-selective contacts for nanowire solar cells