The application of electromagnetic theory to electrocardiology. I. Derivation of the integral equations.