Contribution of three-body terms to the calculated nucleon optical potential