Text this: Effect of pH and API gravity on the water-in-oil emulsion stability