Inductance to digital converter