Empirical estimation of entropy functionals with confidence