Gender differences and cognitive aspects on functional outcome after hip fracture--a 2 years' follow-up of 2,134 patients.