Inverse spectral theory for uniformly open gaps in a weighted Sturm–Liouville problem