Durability study of transparent and flexible nanolayer barrier for photovoltaic devices