Risk factors for primary major amputation in diabetic patients