This is the code as it was used for the results in my Ph.D. Thesis