Learning Graphical Models with Mercer Kernels