Biophysical principles of electrocardiography