Enhancement mechanism of H2 sensing in metal-functionalized GaN nanowires