Formation of crown structure in Scots pine trees