On the shape of a grain boundary pinned by a spherical particle