Forward modeling and inversion of tensor CSAMT in 3D anisotropic media