A Finite Element Model of Cardiac Electrophysiology and Mechanics