Investigation of functional near-infrared spectroscopy as a monitoring tool for measuring the effect of transcranial alternating current stimulation on dementia patients’ cognitive function