Fast Approximation of Similarity Graphs with Kernel Density Estimation