Numerical optimization of three-dimensional coils for NSTX-U