Evaluation of cognitive functions and the related factors in 50–80 year type 2 diabetic subjects