Formation of high polymers on solid surfaces I. Theoretical study of mechanisms