Bose–Einstein condensation and thermalization of the quark–gluon plasma