Stochastic generation of complex crystal structures combining group and graph theory with application to carbon | Synapse