Rafael Nadal came through a thrilling five-set match with Grigor Dimitrov on Friday