Gardner scores ‘fantastic’ century to rebuild Australia innings