how is sand formed in river