Self-Duality of Markov Processes and Intertwining Functions