Text this: Automating bone loss measurement on periapical radiographs for predicting the periodontitis stage and grade