A three-manifold invariant independent of the homotopy type