A polarized hydrogen/deuterium atomic beam source for internal target experiments