The influence of anesthetic techniques on postoperative cognitive function in elderly patients undergoing hip fracture surgery: General vs spinal anesthesia.