Top-k Query Processing and Malicious Node Identification Based on Node Grouping in MANETs