Multifunctional tryptophan-based fluorescent polymeric probes for sensing, bioimaging and removal of Cu2+ and Hg2+ ions