Effect of network size on the statistical similarity between preferential attachment and triadic closure