Computational Barthel Index: an automated tool for assessing and predicting activities of daily living among nursing home patients