A 30-year-old female presents with low back pain, urinary frequency, polyuria, blood pressure 160/100 mmHg, urinary protein (+), RBCs 8-10/HPF, WBC count 15-20/HPF. Intravenous pyelogram (IVP) shows right kidney atrophy and pelvic dilation. The most likely diagnosis is: