Interface measurement of oil, emulsions, water in desalters