Detection and identification of atomic clock anomalies