Structure and catalytic processes of N-containing species on Rh(111) from first principles