Selective layer-by-layer self-assembly on patterned porous films modulated by Cassie-Wenzel transition.