How some of America’s most gifted kids wind up in prison