Supersonic nozzle design of arbitrary cross-section