Tailoring of surface properties at the nanoscale by layer-by-layer technique