Neurophotonic sensors for bionic limbs