A method for characterising longitudinal irregularity in river channels