The opener made a timely hundred against the pink ball following Usman Khawaja’s fitness problems in the first Ashes Test