Significance of molecular and crystal structure on organic semiconductor doping