Effective protection of high-performance dopamine-based corrosion inhibitor on metal surface