On calculation of the Witten invariants of 3-manifolds