Ronnie O'Sullivan reached the quarter-finals of the World Snooker Championship as he completed a 13-7 victory over Ryan Day.