Systematical investigation on the stability of doubly heavy tetraquark states