Global linearization of periodic difference equations