Mechanisms of adhesive micropatterning of functional colloid thin layers.