A finite range pairing force for density functional theory in superfluid nuclei