The relationship between sleep and wake habits and academic performance in medical students: a cross-sectional study