Semi-analytical form of full-wave self-interaction integrals over rectangles