NiO hierarchical structure: template-engaged synthesis and adsorption property