Mechanics of cancer cells in 3D microenvironments