How is hydronephrosis diagnosed?