An optimum design of implosion with external magnetic field for electron beam guiding in fast ignition