Principles of RNA and nucleotide discrimination by the RNA processing enzyme RppH