Potential theory, and its applications to basic problems of mathematical physics