what are the factors that affect biological diversity