Tag demulsifiers in oilfields