Pure Exploration in Kernel and Neural Bandits