Comparison of oral versus intravenous tranexamic acid in total knee and hip arthroplasty