Digital phase detection for high-precision surface acoustic wave sensor systems