Threshold voltage in a nanowire MOSFET