Nonparametric confidence intervals for monotone functions