Quality of Life and Affective Well-Being in Middle-Aged and Older People with Chronic Medical Illnesses: A Cross-Sectional Population Based Study