The influence of environment and life‐history traits on the distribution of genes and individuals: a comparative study of 11 rainforest trees