Effects of catalyst characters on the photocatalytic activity and process of NiO nanoparticles in the degradation of methylene blue