Kernel similarity matching with Hebbian networks