Digi-Q: Learning Q-Value Functions for Training Device-Control Agents