Study of the effects of Pauli blocking and Pauli nonlocality on the optical potential