Smith century gives Australia narrow lead