Expansion formulas and addition theorems for Gegenbauer functions