Resource allocation and productivity in national and international agricultural research