A Numerical Method for Cardiac Mechanoelectric Simulations