Consistent Kernel Mean Estimation for Functions of Random Variables