Computational complexity of topological invariants