ENH speed up TfidfTransformer using spdiags

Fixes #1895.