Cristiano Ronaldo hat trick earns Portugal thrilling draw against Spain