Flexible inorganic composite nanofibers with carboxyl modification for controllable drug delivery and enhanced optical monitoring functionality