feat(hex_decode): adds a function to decode HEX-encoded regs

Adds a function named hexDecode to decode HEX-encoded 2-byte or
4-byte registers returned by a slave device.