Comparison of frequency-domain and continuous-wave near-infrared spectroscopy devices during the immediate transition