Effect of surgery and radiotherapy on visual and endocrine function in nonfunctioning pituitary adenomas