Interactions between agricultural and ecological systems at the landscape level