A solution method for the determination of cardiac potential distributions with an alternating current source