Prediction of survival, second fracture, and functional recovery following the first hip fracture surgery in elderly patients