Krylov-aware stochastic trace estimation