Effects of octahedral to spherical precipitate-shape transition on elastic strain energy due to misfit precipitates in materials with cubic structures