Glycemic control and its association with sleep quality and duration among type 2 diabetic patients