WIGHTMAN FUNCTIONS IN DE SITTER AND ANTI-DE SITTER SPACETIMES IN THE PRESENCE OF COSMIC STRINGS