Multicomponent System of Single‐Walled Carbon Nanotubes Functionalized with a Melanin‐Inspired Material for Optical Detection and Scavenging of Metals