Dynamics of large-scale structures in turbulent flow over a wavy wall