Wetting transition of the ordered nanoporous matrix layer under impact and static pressure