Masses and residues of the triply heavy spin-1/2 baryons