Micromechanical modeling of barrier properties of polymer nanocomposites