Generalized Nonextensive Thermodynamics Applied to the Cosmic Background Radiation in a Robertson-Walker Universe