The effect of the chemical structure of some nitrogen- and sulphur-containing organic compounds on their corrosion inhibiting action