Synthesis of NiO nanostructures from 1D to 3D and researches of their gas-sensing properties