From hexagonally arrayed nanorods to ordered porous film through controlling the morphology of ZnO crystals