Model-based fit procedure for power-law-like spectra