Ray-Knight compactification of birth and death processes