Wage Bargaining as an Optimal Control Problem: A Dynamic Version of the Efficient Bargaining Model