Spectral inversion of an indefinite Sturm–Liouville problem due to Richardson