Correlation between the structure and the anticorrosion barrier properties of hybrid sol–gel coatings: application to the protection of AA2024-T3 alloys