Dual-mode operation of a Pd/AlN/SiC device for hydrogen sensing