Rafael Nadal beats Grigor Dimitrov in a thrilling five setter to set up a mouth-watering title clash with Roger Federer.