Autotuning technique for digital constant on-time controllers