Multifunctional layer-by-layer carbon nanotube–polyelectrolyte thin films for strain and corrosion sensing