Nanoscale brushes: how to build a smart surface coating.