Modelling dune erosion, overwash and inundation of barrier islands