Topological and electrical control of cardiac differentiation and assembly