Predicting bilgewater emulsion stability by oil separation using image processing and machine learning.