A new active region detection criterion for selective algorithms in shakedown analysis