Association between social capital, health-related quality of life, and mental health: a structural-equation modeling approach