Analytical Formulation of Autonomous Vehicle Freeway Merging Control with State-Dependent Discharge Rates