of age, was declared dependent on a juvenile court located in the United States or whom such a court has legally committed to, or placed under the custody of, an agency or department of a State, or an individual or entity appointed by a State or juvenile court located in the United States, and whose reunification with either parent of the immigrant is not viable due to abuse, neglect, abandonment, or a similar basis found under State law