Khawaja hits ton as Australia take the lead in Adelaide