Electroactive conducting polymers for corrosion control