Stochastic reconstruction of sandstones