The role of biodiversity in agroecosystems