Nicholson-Type Integrals for Products of Gegenbauer Functions and Related Topics