Randomized matrix-free trace and log-determinant estimators