Uniform in bandwidth consistency of kernel-type function estimators