KDEformer: Accelerating Transformers via Kernel Density Estimation