Friedrich Merz, the CDU leader who is in line to be Germany's next Chancellor, has ruled out a deal with the AfD.