Mechanism and evaluation of protective properties of paints