Development and application of demand-responsive ramp metering control to improve traffic management in freeway corridors