Molecular Origins of Selectivity in the Reduction of NOx by NH3