Stefanos Tsitsipas survived a compelling five-set battle with Jannik Sinner to reach the quarter-finals of the Australian Open.