Switched-Mode Urea Dosing Control Design for Selective Catalytic Reduction in a Diesel Engine