Entanglement dynamics of electron spins in quantum dots under a nonuniform magnetic field