Reactivity of hydrogen with solid-state films of alkylamine- and tetraoctylammonium bromide-stabilized Pd, PdAg, and PdAu nanoparticles for sensing and catalysis applications.