Can a synthetic thread act as an electrochemical switchable molecular device?