Quantifying solid stress and elastic energy from excised or in situ tumors