Joint optimization of field development and water-alternating-gas recovery strategies