Analysis of factors affecting the radiological and functional outcome of proximal femoral nailing in unstable intertrochanteric fractures