Practical and Consistent Estimation of f-Divergences