Optimal monetary policy with a nonlinear Phillips curve