Rearrangement term in the folding model of the nucleon optical potential