An experimental study on the ripple–dune transition