As known in SDK nrf there is a function battery_level_in_percent() used to calculate battery percentage but it is only true for the CR2032 battery. Currently, I am using AAA battery so is there any way I can calculate the percentage of the remaining battery by measuring the Vdd pin ADC?