Effectiveness of hip or knee replacement surgery in terms of quality-adjusted life years and costs