Inversions of the Ledoux discriminant: a closer look at the tachocline