A simulation protocol to study proteins in vacuo. Controlled re-folding and re-unfolding transitions