Topological Entanglement Entropy from the Holographic Partition Function