A fast multipole accelerated method of fundamental solutions for potential problems