Inhibition by heterocyclic compounds of corrosion of copper