Xrf fit

I think that this should probably be called `loglog_background` or something like that as it helps readability.