Wearable and modular functional near-infrared spectroscopy instrument with multidistance measurements at four wavelengths