Text this: Smart fiber with overprinted patterns to function as chip-like multi-threshold logic switch circuit