Optimizing the design of planting experiments for agricultural crops