Multi-class local ramp metering to reduce traffic emissions in freeway systems