Code for: Spectral analysis and random reconstruction of realistic rock joint surfaces