Influence of terminal effects on length distribution of C-C bonds in C4, C4H2, C4H4, C6, C6H2 and C6H4 molecules