Optimum Control of Unwanted Water Production in Stratified Gas Reservoirs