Generalized thermostatistics and Bose–Einstein condensation