Ensemble learning of coarse-grained molecular dynamics force fields with a kernel approach