Optimal Topology for Distributed Fault Detection of Large-scale Systems