Three-dimensional transonic shocks in a nozzle