Chitosan-functionalized porous silicon optical transducer for the detection of carboxylic acid-containing drugs in water