the heart muscle is stimulated to contract by electrical impulses which are generated where