Nondestructive testing for corrosion control