Text this: Effect of anchoring groups on the electronic transport properties of biphenyl and phenyl-pyridine molecules