In a uniform electric field $10\text{ N C}^{-1}$, an electric dipole of length $4\text{ cm}$ is placed with its axis making an angle $60^\circ$ with the electric field. If the dipole experiences a torque of $8\sqrt{3}\text{ N m}$, find the potential energy of the dipole.