Italy and Spain advance to Euro 2012 quarterfinals