Flattening of a deformable sphere by a rigid sphere during transient thermo-mechanical contact