Evaluating the effects of exercise on cognitive function in hypertensive and diabetic patients using the mental test and training system