Environmentally benign heterocyclic corrosion inhibitors