Kernel Approximation using Analog In-Memory Computing