In-situ and ex-situ chitosan-silver nanoparticle composite: comparison of storage/release and catalytic properties