Method for functionalizing a porous membrane covering of an optical sensor to facilitate coupling of an antithrombogenic agent