Adverse lifestyle and health-related quality of life: gender differences in patients with and without chronic conditions