created function_DTI_CHARMED_write_tensor_dir.m to save the tensor directions