Simulation of atrial electrophysiology and body surface potentials for normal and abnormal rhythm