Factors predicting failure of internal fixations of fractures of the lower limbs: a prospective cohort study