Host dependence of the electron affinity of molecular dopants