Thermopower of mixed-valent CeNi5: 4f-electron instability vs band structure effects