Stresses in accreted planetary bodies