Stable sensor layers self-assembled onto surfaces using azobenzene-containing polyelectrolytes.