Sn doped ZnO layered porous nanocrystals with hierarchical structures and modified surfaces for gas sensors