Kernel-based Graph Learning from Smooth Signals: A Functional Viewpoint