i2c: sensor: Replace static_assert by BUILD_ASSERT_MSG
i2c: sensor: Replace static_assert by BUILD_ASSERT_MSG

Replace static_assert in NRFX TWI, TWIM and QDEC drivers by
BUILD_ASSERT_MSG

fixes: #11754

Signed-off-by: Jan Van Winkel <d648848808a4d751aff880668aa63d2d9d94a5a4@dxplore.eu>

nashif/zephyr,ldts/zephyr,ldts/zephyr,punitvara/zephyr,GiulianoFranchetto/zephyr,GiulianoFranchetto/zephyr,galak/zephyr,ldts/zephyr,Vudentz/zephyr,Vudentz/zephyr,finikorg/zephyr,GiulianoFranchetto/zephyr,ldts/zephyr,punitvara/zephyr,galak/zephyr,galak/zephyr,explora26/zephyr,Vudentz/zephyr,explora26/zephyr,zephyrproject-rtos/zephyr,explora26/zephyr,zephyrproject-rtos/zephyr,nashif/zephyr,finikorg/zephyr,punitvara/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,GiulianoFranchetto/zephyr,finikorg/zephyr,nashif/zephyr,Vudentz/zephyr,nashif/zephyr,nashif/zephyr,galak/zephyr,GiulianoFranchetto/zephyr,explora26/zephyr,ldts/zephyr,Vudentz/zephyr,explora26/zephyr,zephyrproject-rtos/zephyr,punitvara/zephyr,galak/zephyr,punitvara/zephyr,Vudentz/zephyr,finikorg/zephyr