Solving the inverse problem of ECG for realistic atrial excitation propagation