Prediction of periapical status and tooth extraction