My thinking would be to do a work integral
Work = integral dWork
= integral delta V dq
= integral delta V 4(pi r^2) dr
The problem is, is this possible with a single integral?
Due to the offset cavity, the electric field E will not be constant at a given r.