Smart Materials for Bacterial Detection Based on Electrochromic Molecules