A numerical study of an impacting compound droplet undergoing thermocapillary convection