Nonparametric confidence intervals for the integral of a function of an unknown density