Stability of immobilized enzymes as biosensors for continuous application in vitro and in vivo