Cavity formation during water entry of heated spheres