Spectral fitting using basis set modified by measured B0 field distribution