Hilbert Schmidt theory of integral equations with symmetric kernels