The impact of surface chemistry on stable semiconductor nanowire growth