Analysis of nanoporosity in moisture permeation barrier layers by electrochemical impedance spectroscopy