Cluster-tilted algebras and quivers with potentials