Travis Head’s brutal innings cleared the way for Usman Khawaja and Steve Smith to sculpt centuries on a domineering day for Australia in Galle.