Optical sensor for extracorporeal blood flow measurement