Optimal designs for nonparametric estimation of zeros of regression functions