Controllable synthesis of nickel dendritic crystals induced by magnetic field