Analytical potentials from ab initio SCF interaction energies: problems, methods and results