Definition of encapsulation barrier requirements: A method applied to organic solar cells