Edinson Cavani scored two wonder goals as Uruguay progressed to the quarters at the expense of Cristiano Ronaldo and the reigning champions of Europe.