SEPARATION OF VARIABLES AND LIE-ALGEBRA CONTRACTIONS. APPLICATIONS TO SPECIAL FUNCTIONS