Lahiru Thirimanne made a century as Sri Lanka beat Australia in Adelaide