Text this: Chemically functionalized polymers as corrosion inhibitors