HII Regions and the Distances to Pulsars