New Approaches to Distributed Hypothesis Testing and State Estimation in Large-Scale Networks