The strain energy of a coherent ellipsoidal precipitate