Graph-based simulated annealing: a hybrid approach to stochastic modeling of complex microstructures