The structural basis of tRNA mimicry and conformational plasticity by a viral RNA