A nonlinear optimal control approach for two-class freeway traffic regulation to reduce congestion and emissions