Faulty or malicious anchor detection criteria for distance-based localization