Self-assembly of ZnO nanocrystals into nanoporous pyramids: high selective adsorption and photocatalytic activity