Demographic factors compared with the general quality of life of patients with type 1 and 2 diabetes