In vitro method to evaluate the barrier properties of medical devices