Mechanistic studies of the corrosion inhibitor oleic imidazoline