Fine-tuning of metal work function by molecular doping