Modeling long-term beach and dune evolution with interacting longshore and cross-shore processes