Risk-based clustering for near misses identification in integrated deterministic and probabilistic safety analysis