Modeling the effects of hard structures on dune erosion and overwash