Heat Transfer and Solidification During the Impact of a Droplet on a Surface