Infinite-dimensional next-generation reservoir computing