The effects of tree size, nutrient availability, interactions with neighbors, and masting synchrony on fruit production in tropical and temperate forests