Carbon cluster structures and stabilities predicted from solid-state potentials