Prediction of the viscosity of water-in-oil emulsions