A novel method for the determination of electrical potentials across cellular membranes. I. Theoretical considerations and mathematical approach