Phase diagram of quasi-two-dimensional carbon, from graphene to diamond.