Electrophysiology of living organs from first principles