If kidney stones get too large, they can cause severe flank pain and hydronephrosis because they block the: