Calculations of g Tensors and Hyperfine Splitting Tensors for Molecules in Their Triplet States