Ton-up Smith turns tide for Australia in Ashes opener