Physics design of the NSTX upgrade