Bodyweight, gender, and quality of life: a population-based longitudinal study