Dynamic time warping-based averaging framework for functional near-infrared spectroscopy brain imaging