A dipole with a dipole moment of magnitude p is in stable equilibrium in an electrostatic field of magnitude E. Find the work done in rotating this dipole to its position of unstable equilibrium.