Analysis of the transitions between flow patterns in open-channel lateral cavities with increasing aspect ratio