A correlation between the distributions of pulsars and emission measures in the galaxy