Ultimate recovery of an exhaustible resource under different market structures