Smith, Bailey tons power Australia to five-wicket win