Wave-induced sediment transport and onshore sandbar migration