sandbox: Rewrite i2c_pmic_emul.c to support PMIC with 3 bytes transmission