A Unified Polymerase Mechanism for Nonhomologous DNA and RNA Polymerases