Real part of the nuclear interaction potential between α or p and excited heavy nuclei