Early-stage detection of cognitive impairment by hybrid quantum-classical algorithm using resting-state functional MRI time-series