Structural basis for substrate selection by T7 RNA polymerase