Kinetic treatment of irreversible cyclooligomerization of bifunctional chains and its relevance to the synthesis of many-membered rings