Optimal designs for comparing curves.