Contribution of taking part in sport to the association between physical activity and quality of life