Example of optimizing an EM2D restraint using Monte Carlo.