The effect of background on the protonation of pyridine: a complex formation model