Understanding the relationship between the structural properties of three corrosion inhibitors and their surface protectiveness ability in different environments