Influence of configuration at dopant sites on catalytic activity of phosphorus-doped graphite