Modeling cardiac mechanics using a cell-based framework