Synthesis and characterization of hierarchical NiO nanoflowers with porous structure