Origin of step-pool systems in mountain streams