A small object of mass $m$ carries a charge $q$ and is suspended by a thread between the vertical plates of a parallel-plate capacitor. The plate separation is $d$. If the thread makes an angle $\theta$ with the vertical, what is the potential difference between the plates?