Optimal maintenance and production rates for a machine: A nonlinear economic control problem