Role of hexavalent chromium in the inhibition of corrosion of aluminum alloys