A theoretical investigation on the structures and stabilities of C60X18 and C70X10 (X = H, F, Cl, and Br)