The PMF was calculated using the ABF method, an importance sampling algorithm developed by Pohorille and Darve. The algorithm is based on the computation of the mean force along a certain collective variable (colvar), which is divided into small bins. The mean force is then cancelled out by an equal and opposite biasing force. This allows the system to move freely along that colvar, overcoming energy barriers and recovering ergodicity.