Electrochemistry provides better understanding of polymer brushes as smart coatings