Grain size dependence of barchan dune dynamics