Computational modeling framework for cardiac electrophysiology and mechanics