Inverse method for controlling pure material solidification in spherical geometry