Dynamical degrees of twisted rational maps