Nadal beats Raonic in Rogers Cup final