Adjoint method and runaway electron avalanche