Corrosion inhibition of carbon steel in petroleum/water mixtures by N-containing compounds