Probing stellar cores from inversions of frequency separation ratios