Robust Distributed Estimation: Extending Gossip Algorithms to Ranking and Trimmed Means